package com.xmy.cultivate.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum StatusEnum {

    NO(0,"无"),
    NORMAL(1,"正常"),
    DISABLE(2,"禁用");


    @EnumValue
    private Integer key;

    @JsonValue
    private String value;

    StatusEnum(Integer key,String value){
        this.key = key;
        this.value = value;
    }
}
